<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDebugTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('debug', function (Blueprint $table) {
            $table->increments('id');
            $table->char('DevE',16)->index();
            $table->char('tmst',10)->index();
            $table->char('time',27)->nullable();
            $table->char('gwad',12);
            $table->string('freq');
            $table->char('datr',9);
            $table->string('rssi');
            $table->string('lsnr');
            $table->string('chan');
            $table->string('fcnt');
            $table->string('fprt');
            $table->string('datar');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('debug');
    }
}
